package com.ruoyi.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.RiverViewMapper;
import com.ruoyi.domain.RiverView;
import com.ruoyi.service.IRiverViewService;

/**
 * river_viewService业务层处理
 * 
 * @author ya
 * @date 2025-06-07
 */
@Service
public class RiverViewServiceImpl extends ServiceImpl<RiverViewMapper,  RiverView> implements IRiverViewService
{
    @Autowired
    private RiverViewMapper riverViewMapper;

    /**
     * 查询river_view
     * 
     * @param id river_view主键
     * @return river_view
     */
    @Override
    public RiverView selectRiverViewById(Long id)
    {
        return riverViewMapper.selectRiverViewById(id);
    }

    /**
     * 查询river_view列表
     * 
     * @param riverView river_view
     * @return river_view
     */
    @Override
    public List<RiverView> selectRiverViewList(RiverView riverView)
    {
        return riverViewMapper.selectRiverViewList(riverView);
    }

    /**
     * 新增river_view
     * 
     * @param riverView river_view
     * @return 结果
     */
    @Override
    public int insertRiverView(RiverView riverView)
    {
        return riverViewMapper.insertRiverView(riverView);
    }

    /**
     * 修改river_view
     * 
     * @param riverView river_view
     * @return 结果
     */
    @Override
    public int updateRiverView(RiverView riverView)
    {
        return riverViewMapper.updateRiverView(riverView);
    }

    /**
     * 批量删除river_view
     * 
     * @param ids 需要删除的river_view主键
     * @return 结果
     */
    @Override
    public int deleteRiverViewByIds(Long[] ids)
    {
        return riverViewMapper.deleteRiverViewByIds(ids);
    }

    /**
     * 删除river_view信息
     * 
     * @param id river_view主键
     * @return 结果
     */
    @Override
    public int deleteRiverViewById(Long id)
    {
        return riverViewMapper.deleteRiverViewById(id);
    }
}
